//
//  MainModel.h
//  DaJiang
//
//  Created by sally on 16/10/12.
//  Copyright © 2016年 jiniu. All rights reserved.
//

#import "BussinessModel.h"
#import "MainInterface.h"

@interface MainModel : BussinessModel

+ (void)privateRequestWithCompanyName:(NSString *)companyName
                             userName:(NSString *)userName
                                phone:(NSString *)phone
                              problem:(NSString *)problem
                          rewardValue:(NSString *)rewardValue
                                 time:(NSString *)time
                             location:(NSString *)location
                         locationDesc:(NSString *)locationDesc
                           completion:(void (^)(BOOL isSucceed))completion;

@end

/**
 *  banner实体
 */
@class BannerData;
@interface BannerModel : BussinessModel

@property (nonatomic, strong) BannerData *data;
@property (nonatomic, assign) NSInteger bannerid;
@property (nonatomic, assign) NSInteger updated_at;
@property (nonatomic, assign) NSInteger uid;
@property (nonatomic, assign) NSInteger created_at;

//获取banner列表
+ (void)queryBannerListWithCompletion:(void (^)(NSMutableArray *bannerList))completion;

@end

@interface BannerData : BussinessModel

@property (nonatomic, assign) NSInteger schema;
@property (nonatomic, assign) NSInteger avaliable;
@property (nonatomic, strong) NSString *banner_name;
@property (nonatomic, assign) NSInteger pro_uid;
@property (nonatomic, strong) NSString *banner_pic;
@property (nonatomic, strong) NSString *jump_url;

@end

/**
 *  地区实体
 */
@class LocationData;
@interface LocationModel : BussinessModel

@property (nonatomic, strong) LocationData *data;
@property (nonatomic, assign) NSInteger locid;
@property (nonatomic, assign) NSInteger updated_at;
@property (nonatomic, assign) NSInteger uid;
@property (nonatomic, assign) NSInteger created_at;

//获取地区列表
+ (void)queryLocationListWithCompletion:(void (^)(NSMutableArray *locList))completion;

@end

@interface LocationData : BussinessModel

@property (nonatomic, strong) NSString *pro_user_location_name;
@property (nonatomic, assign) NSInteger state;

@end
